package trash.Tmp;


public class VarLenArgs
{
    public static void main(String[] args)
    {
        VarLenArgs va = new VarLenArgs();
        va = new VarLenArgs(10);
        va = new VarLenArgs(100, 200);
        va = new VarLenArgs(1000, 2000, 3000);
    }

    public VarLenArgs(int ... args)
    {
        System.out.println("Type = " + args.getClass().getTypeName());
        System.out.println("Cnt = " + args.length);
        for (int x : args)
            System.out.println(x);
    }
}
